const token_local = 'token';

export const saveToken = (obj) => {
    // 存储token
	localStorage.setItem(token_local, JSON.stringify(obj));
};

export const loadToken = () => {
    return JSON.parse(localStorage.getItem(token_local));
}

export const delToken = ()=>{
    localStorage.removeItem(token_local);
}
